let arr = [1, 2];
console.log(arr.slice(0, 2));